﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Navigation;

namespace Jackie.Silverliight.SetpBySetp.KeyEvent
{
    public partial class KeyEventRount : Page
    {
        public KeyEventRount()
        {
            InitializeComponent();
        }

        // Executes when the user navigates to this page.
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
        }

        private void LayoutRoot_KeyUp(object sender, KeyEventArgs e)
        {
            if(e.Key!=Key.Unknown)
            {
                string msg = "The Key" + e.Key.ToString();
                msg += " was pressed while focus was on" + (e.OriginalSource as FrameworkElement).Name;
                status.Text = msg;
            }
        }

    }
}
